<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class CustomHouse
 *
 * @property int $id
 * @property int $cid
 * @property int $house_id
 *
 * @package App\Models
 */
class CustomHouse extends BaseModel
{
	protected $table = 'custom_houses';
	public $timestamps = false;

	protected $casts = [
		'cid' => 'int',
		'house_id' => 'int'
	];

	protected $fillable = [
		'cid',
		'house_id'
	];

	public function custom()
    {
        return $this->belongsTo("App\Models\Custom","cid","id")->select(["id","name","header"]);
    }
}
